package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CcsOfflineAppointmentPlaceMapper;
import com.ruoyi.system.domain.CcsOfflineAppointmentPlace;
import com.ruoyi.system.service.ICcsOfflineAppointmentPlaceService;

/**
 * 线下预约地点Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-28
 */
@Service
public class CcsOfflineAppointmentPlaceServiceImpl implements ICcsOfflineAppointmentPlaceService 
{
    @Autowired
    private CcsOfflineAppointmentPlaceMapper ccsOfflineAppointmentPlaceMapper;

    /**
     * 查询线下预约地点
     * 
     * @param id 线下预约地点主键
     * @return 线下预约地点
     */
    @Override
    public CcsOfflineAppointmentPlace selectCcsOfflineAppointmentPlaceById(Long id)
    {
        return ccsOfflineAppointmentPlaceMapper.selectCcsOfflineAppointmentPlaceById(id);
    }

    /**
     * 查询线下预约地点列表
     * 
     * @param ccsOfflineAppointmentPlace 线下预约地点
     * @return 线下预约地点
     */
    @Override
    public List<CcsOfflineAppointmentPlace> selectCcsOfflineAppointmentPlaceList(CcsOfflineAppointmentPlace ccsOfflineAppointmentPlace)
    {
        return ccsOfflineAppointmentPlaceMapper.selectCcsOfflineAppointmentPlaceList(ccsOfflineAppointmentPlace);
    }

    /**
     * 新增线下预约地点
     * 
     * @param ccsOfflineAppointmentPlace 线下预约地点
     * @return 结果
     */
    @Override
    public int insertCcsOfflineAppointmentPlace(CcsOfflineAppointmentPlace ccsOfflineAppointmentPlace)
    {
        return ccsOfflineAppointmentPlaceMapper.insertCcsOfflineAppointmentPlace(ccsOfflineAppointmentPlace);
    }

    /**
     * 修改线下预约地点
     * 
     * @param ccsOfflineAppointmentPlace 线下预约地点
     * @return 结果
     */
    @Override
    public int updateCcsOfflineAppointmentPlace(CcsOfflineAppointmentPlace ccsOfflineAppointmentPlace)
    {
        return ccsOfflineAppointmentPlaceMapper.updateCcsOfflineAppointmentPlace(ccsOfflineAppointmentPlace);
    }

    /**
     * 批量删除线下预约地点
     * 
     * @param ids 需要删除的线下预约地点主键
     * @return 结果
     */
    @Override
    public int deleteCcsOfflineAppointmentPlaceByIds(Long[] ids)
    {
        return ccsOfflineAppointmentPlaceMapper.deleteCcsOfflineAppointmentPlaceByIds(ids);
    }

    /**
     * 删除线下预约地点信息
     * 
     * @param id 线下预约地点主键
     * @return 结果
     */
    @Override
    public int deleteCcsOfflineAppointmentPlaceById(Long id)
    {
        return ccsOfflineAppointmentPlaceMapper.deleteCcsOfflineAppointmentPlaceById(id);
    }
}
